﻿using Itech_Run.Application.Contracts.Shared.Dto;
using System.ComponentModel.DataAnnotations;

namespace Itech_Run.Sys.Application.Contracts.Dto
{
    public class SysDictionaryCreateDto : CustomCreateDto
    {
        /// <summary>
        /// 1 普通;   2 附件
        /// </summary>
        public int Category { get; set; }

        /// <summary>
        /// 1 字典类别：Code、Name分别对应类别编码及名称【预定义好】；;   ;   
        /// </summary>
        [Required]
        [StringLength(50)]
        public string CodeType { get; set; }

        [Required]
        [StringLength(200)]
        public string Name { get; set; }

        [Required]
        [StringLength(50)]
        public string Code { get; set; }

        [StringLength(500)]
        public string? Value { get; set; }

        public int Sort { get; set; }

        [StringLength(200)]
        public string? Remark { get; set; }

        public bool IsActive { get; set; }

        public bool? IsShow { get; set; }
    }
}
